using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace CKY.AgentPlatform.Domain.Services
{
    /// <summary>
    /// 提示模板服务接口
    /// </summary>
    public interface IPromptTemplateService
    {
        Task<PromptTemplateResult> CreateTemplateAsync(string name, string content, string description = null);
        Task<PromptTemplateResult> GetTemplateAsync(Guid templateId);
        Task<PromptTemplateResult> UpdateTemplateAsync(Guid templateId, string name, string content, string description = null);
        Task<bool> DeleteTemplateAsync(Guid templateId);
        Task<List<PromptTemplateResult>> GetAllTemplatesAsync();
    }

    /// <summary>
    /// 提示模板结果
    /// </summary>
    public class PromptTemplateResult
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
        public string Content { get; set; }
        public string Description { get; set; }
        public bool Success { get; set; }
        public string ErrorMessage { get; set; }
        public DateTime CreationTime { get; set; }
        public Dictionary<string, object> Variables { get; set; }
    }
}